package com.example.train_operate.util;

public enum ResultCodeEnum {
    SUCCESS(200, "成功"),
    SAVE_SUCCESS(200, "添加成功"),
    UPDATE_SUCCESS(200, "修改成功"),
    DELETE_SUCCESS(200, "删除成功"),
    FAIL(201, "失败"),
    SERVICE_ERROR(500, "服务器异常");

    private Integer code;
    private String message;

    private ResultCodeEnum(Integer code, String message) {
        this.code = code;
        this.message = message;
    }

    public Integer getCode() {
        return this.code;
    }

    public String getMessage() {
        return this.message;
    }
}
